.class public Lrexsee/core/widget/Div;
.super Landroid/widget/FrameLayout;
.source "Div.java"


# instance fields
.field public final coverLayout:Landroid/widget/FrameLayout;

.field public final innerLayout:Landroid/widget/FrameLayout;

.field public final mBottomBorder:Landroid/widget/ImageView;

.field protected final mContext:Landroid/content/Context;

.field public final mHorizontalLayout:Landroid/widget/LinearLayout;

.field private mId:Ljava/lang/String;

.field public final mLeftBorder:Landroid/widget/ImageView;

.field public final mRightBorder:Landroid/widget/ImageView;

.field public final mTopBorder:Landroid/widget/ImageView;

.field public final mVerticalLayout:Landroid/widget/LinearLayout;

.field public styleSheet:Lrexsee/core/style/StyleSheet;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .locals 7
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    const/4 v6, 0x0

    const/high16 v5, 0x40000000    # 2.0f

    const/4 v4, 0x1

    const/4 v3, -0x1

    .line 35
    invoke-direct {p0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    .line 36
    iput-object p1, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    .line 37
    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    .line 38
    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, p1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    .line 39
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    .line 40
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    .line 41
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    .line 42
    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, p1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    .line 43
    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    .line 44
    new-instance v0, Landroid/widget/FrameLayout;

    invoke-direct {v0, p1}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->coverLayout:Landroid/widget/FrameLayout;

    .line 46
    invoke-virtual {p0, v6}, Lrexsee/core/widget/Div;->setBackgroundColor(I)V

    .line 58
    iget-object v0, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v4}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 59
    iget-object v0, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 60
    iget-object v0, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v3, v3, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 61
    iget-object v0, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v3, v4}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 62
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v6}, Landroid/widget/LinearLayout;->setOrientation(I)V

    .line 63
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 64
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->mVerticalLayout:Landroid/widget/LinearLayout;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v3, v3, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(IIF)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 65
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    iget-object v1, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    new-instance v2, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v2, v4, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 66
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lrexsee/core/widget/Div;->addView(Landroid/view/View;)V

    .line 67
    iget-object v0, p0, Lrexsee/core/widget/Div;->coverLayout:Landroid/widget/FrameLayout;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/FrameLayout;->setVisibility(I)V

    .line 68
    iget-object v0, p0, Lrexsee/core/widget/Div;->coverLayout:Landroid/widget/FrameLayout;

    invoke-virtual {p0, v0}, Lrexsee/core/widget/Div;->addView(Landroid/view/View;)V

    .line 70
    new-instance v0, Lrexsee/core/style/StyleSheet;

    invoke-direct {v0, p1}, Lrexsee/core/style/StyleSheet;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    .line 71
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->setDivStyle()V

    .line 73
    return-void
.end method


# virtual methods
.method public addChild(Landroid/view/View;)V
    .locals 0
    .param p1, "child"    # Landroid/view/View;

    .prologue
    .line 170
    invoke-virtual {p0, p1}, Lrexsee/core/widget/Div;->addDivChild(Landroid/view/View;)V

    .line 171
    return-void
.end method

.method public final addDivChild(Landroid/view/View;)V
    .locals 3
    .param p1, "child"    # Landroid/view/View;

    .prologue
    const/4 v2, -0x1

    .line 149
    iget-object v0, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v2, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, p1, v1}, Landroid/widget/FrameLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 150
    return-void
.end method

.method public animate(Lrexsee/core/browser/Browser;Ljava/lang/String;)V
    .locals 4
    .param p1, "browser"    # Lrexsee/core/browser/Browser;
    .param p2, "style"    # Ljava/lang/String;

    .prologue
    .line 177
    new-instance v1, Lrexsee/core/animation/AnimationStyleSheet;

    invoke-direct {v1, p1}, Lrexsee/core/animation/AnimationStyleSheet;-><init>(Lrexsee/core/browser/Browser;)V

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-static {p2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v3

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v3, ";id:"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-object v3, p0, Lrexsee/core/widget/Div;->mId:Ljava/lang/String;

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    const-string v3, ";"

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Lrexsee/core/animation/AnimationStyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/animation/AnimationStyleSheet;

    move-result-object v0

    .line 178
    .local v0, "styleSheet":Lrexsee/core/animation/AnimationStyleSheet;
    iget-object v1, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0, v1}, Lrexsee/core/animation/AnimationStyleSheet;->animate(Landroid/view/View;)V

    .line 179
    return-void
.end method

.method public final getDivId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 79
    iget-object v0, p0, Lrexsee/core/widget/Div;->mId:Ljava/lang/String;

    return-object v0
.end method

.method public final getDivStyle(Ljava/lang/String;)Ljava/lang/String;
    .locals 2
    .param p1, "name"    # Ljava/lang/String;

    .prologue
    .line 139
    const-string v1, "width"

    invoke-virtual {p1, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_0

    .line 140
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->getWidth()I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    .line 145
    :goto_0
    return-object v1

    .line 141
    :cond_0
    const-string v1, "height"

    invoke-virtual {p1, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 142
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->getHeight()I

    move-result v1

    invoke-static {v1}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v1

    goto :goto_0

    .line 144
    :cond_1
    iget-object v1, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v1, p1}, Lrexsee/core/style/StyleSheet;->getStyle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 145
    .local v0, "value":Ljava/lang/String;
    if-nez v0, :cond_2

    const-string v1, "null"

    goto :goto_0

    :cond_2
    move-object v1, v0

    goto :goto_0
.end method

.method public getStyle(Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .param p1, "name"    # Ljava/lang/String;

    .prologue
    .line 163
    invoke-virtual {p0, p1}, Lrexsee/core/widget/Div;->getDivStyle(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getStyleSheet()Lrexsee/core/style/StyleSheet;
    .locals 1

    .prologue
    .line 166
    iget-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    return-object v0
.end method

.method protected onDraw(Landroid/graphics/Canvas;)V
    .locals 4
    .param p1, "canvas"    # Landroid/graphics/Canvas;

    .prologue
    .line 200
    :try_start_0
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onDraw(Landroid/graphics/Canvas;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 204
    :goto_0
    return-void

    .line 201
    :catch_0
    move-exception v0

    .line 202
    .local v0, "e":Ljava/lang/Exception;
    iget-object v1, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "Div.onDraw:"

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v0}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method public removeChilds()V
    .locals 0

    .prologue
    .line 173
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->removeDivChilds()V

    .line 174
    return-void
.end method

.method public final removeDivChilds()V
    .locals 1

    .prologue
    .line 152
    iget-object v0, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->removeAllViews()V

    .line 153
    return-void
.end method

.method public setCoverToTop(Z)V
    .locals 1
    .param p1, "top"    # Z

    .prologue
    .line 190
    if-eqz p1, :cond_0

    .line 191
    iget-object v0, p0, Lrexsee/core/widget/Div;->coverLayout:Landroid/widget/FrameLayout;

    invoke-virtual {v0}, Landroid/widget/FrameLayout;->bringToFront()V

    .line 195
    :goto_0
    return-void

    .line 193
    :cond_0
    iget-object v0, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    invoke-virtual {v0}, Landroid/widget/LinearLayout;->bringToFront()V

    goto :goto_0
.end method

.method public setDivBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V
    .locals 3
    .param p1, "bgDrawable"    # Landroid/graphics/drawable/Drawable;

    .prologue
    .line 122
    iget-object v0, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    invoke-virtual {v0, p1}, Landroid/widget/FrameLayout;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 123
    iget-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v0, v0, Lrexsee/core/style/StyleSheet;->margin_background:Ljava/lang/String;

    const-string v1, "sameasforeground"

    invoke-virtual {v0, v1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 124
    invoke-virtual {p0, p1}, Lrexsee/core/widget/Div;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 128
    :goto_0
    return-void

    .line 126
    :cond_0
    iget-object v0, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v1, 0x0

    iget-object v2, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->margin_background:Ljava/lang/String;

    invoke-static {v0, v1, v2}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    invoke-virtual {p0, v0}, Lrexsee/core/widget/Div;->setBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    goto :goto_0
.end method

.method public final setDivId(Ljava/lang/String;)V
    .locals 0
    .param p1, "id"    # Ljava/lang/String;

    .prologue
    .line 76
    iput-object p1, p0, Lrexsee/core/widget/Div;->mId:Ljava/lang/String;

    .line 77
    return-void
.end method

.method public final setDivStyle()V
    .locals 1

    .prologue
    .line 131
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->getParent()Landroid/view/ViewParent;

    move-result-object v0

    if-nez v0, :cond_0

    iget-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0}, Lrexsee/core/style/StyleSheet;->getLayoutParams()Landroid/widget/LinearLayout$LayoutParams;

    move-result-object v0

    invoke-virtual {p0, v0}, Lrexsee/core/widget/Div;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 132
    :cond_0
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->setDivStyleWithoutLayoutParams()V

    .line 133
    return-void
.end method

.method public final setDivStyle(Ljava/lang/String;)V
    .locals 1
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 135
    iget-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p1}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 136
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->setDivStyle()V

    .line 137
    return-void
.end method

.method public final setDivStyleWithoutLayoutParams()V
    .locals 7

    .prologue
    const/16 v6, 0x8

    const/4 v5, 0x0

    const-string v2, "hidden"

    .line 86
    :try_start_0
    iget-object v2, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v3, 0x0

    iget-object v4, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v4, v4, Lrexsee/core/style/StyleSheet;->background_color:Ljava/lang/String;

    invoke-static {v2, v3, v4}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 87
    .local v0, "bgDrawable":Landroid/graphics/drawable/Drawable;
    invoke-virtual {p0, v0}, Lrexsee/core/widget/Div;->setDivBackgroundDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 89
    iget-object v2, p0, Lrexsee/core/widget/Div;->mHorizontalLayout:Landroid/widget/LinearLayout;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->inner_visibility:Ljava/lang/String;

    const-string v4, "hidden"

    invoke-virtual {v3, v4}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_0

    move v3, v6

    :goto_0
    invoke-virtual {v2, v3}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 90
    iget-object v2, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->visibility:Ljava/lang/String;

    const-string v3, "hidden"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z

    move-result v2

    if-eqz v2, :cond_1

    move v2, v6

    :goto_1
    invoke-virtual {p0, v2}, Lrexsee/core/widget/Div;->setVisibility(I)V

    .line 91
    iget-object v2, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v2}, Lrexsee/core/style/StyleSheet;->getMarginLeft()I

    move-result v2

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v3}, Lrexsee/core/style/StyleSheet;->getMarginTop()I

    move-result v3

    iget-object v4, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getMarginRight()I

    move-result v4

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getMarginBottom()I

    move-result v5

    invoke-virtual {p0, v2, v3, v4, v5}, Lrexsee/core/widget/Div;->setPadding(IIII)V

    .line 92
    iget-object v2, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v2, v2, Lrexsee/core/style/StyleSheet;->play_sound_effect:Ljava/lang/String;

    const-string v3, "true"

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    invoke-virtual {p0, v2}, Lrexsee/core/widget/Div;->setSoundEffectsEnabled(Z)V

    .line 93
    iget-object v2, p0, Lrexsee/core/widget/Div;->innerLayout:Landroid/widget/FrameLayout;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v3}, Lrexsee/core/style/StyleSheet;->getPaddingLeft()I

    move-result v3

    iget-object v4, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getPaddingTop()I

    move-result v4

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getPaddingRight()I

    move-result v5

    iget-object v6, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v6}, Lrexsee/core/style/StyleSheet;->getPaddingBottom()I

    move-result v6

    invoke-virtual {v2, v3, v4, v5, v6}, Landroid/widget/FrameLayout;->setPadding(IIII)V

    .line 95
    iget-object v2, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v4, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getBorderWidthLeft()I

    move-result v4

    const/4 v5, -0x1

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 96
    iget-object v2, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_left_alpha:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getImageAlpha(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 97
    iget-object v2, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_left_scale:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getScaleType(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 98
    iget-object v2, p0, Lrexsee/core/widget/Div;->mLeftBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v4, 0x0

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->border_left_color:Ljava/lang/String;

    invoke-static {v3, v4, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 100
    iget-object v2, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v4, -0x1

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getBorderWidthTop()I

    move-result v5

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 101
    iget-object v2, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_top_alpha:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getImageAlpha(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 102
    iget-object v2, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_top_scale:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getScaleType(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 103
    iget-object v2, p0, Lrexsee/core/widget/Div;->mTopBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v4, 0x0

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->border_top_color:Ljava/lang/String;

    invoke-static {v3, v4, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 105
    iget-object v2, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    iget-object v4, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v4}, Lrexsee/core/style/StyleSheet;->getBorderWidthRight()I

    move-result v4

    const/4 v5, -0x1

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 106
    iget-object v2, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_right_alpha:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getImageAlpha(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 107
    iget-object v2, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_right_scale:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getScaleType(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 108
    iget-object v2, p0, Lrexsee/core/widget/Div;->mRightBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v4, 0x0

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->border_right_color:Ljava/lang/String;

    invoke-static {v3, v4, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    .line 110
    iget-object v2, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    new-instance v3, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v4, -0x1

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v5}, Lrexsee/core/style/StyleSheet;->getBorderWidthBottom()I

    move-result v5

    invoke-direct {v3, v4, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 111
    iget-object v2, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_bottom_alpha:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getImageAlpha(Ljava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setAlpha(I)V

    .line 112
    iget-object v2, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v3, v3, Lrexsee/core/style/StyleSheet;->border_bottom_scale:Ljava/lang/String;

    invoke-static {v3}, Lrexsee/core/style/StyleSheet;->getScaleType(Ljava/lang/String;)Landroid/widget/ImageView$ScaleType;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 113
    iget-object v2, p0, Lrexsee/core/widget/Div;->mBottomBorder:Landroid/widget/ImageView;

    iget-object v3, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    const/4 v4, 0x0

    iget-object v5, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    iget-object v5, v5, Lrexsee/core/style/StyleSheet;->border_bottom_color:Ljava/lang/String;

    invoke-static {v3, v4, v5}, Lrexsee/core/style/RexseeDrawable;->getDrawable(Landroid/content/Context;Lrexsee/core/browser/Browser;Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    .line 119
    .end local v0    # "bgDrawable":Landroid/graphics/drawable/Drawable;
    :goto_2
    return-void

    .restart local v0    # "bgDrawable":Landroid/graphics/drawable/Drawable;
    :cond_0
    move v3, v5

    .line 89
    goto/16 :goto_0

    :cond_1
    move v2, v5

    .line 90
    goto/16 :goto_1

    .line 115
    .end local v0    # "bgDrawable":Landroid/graphics/drawable/Drawable;
    :catch_0
    move-exception v2

    move-object v1, v2

    .line 116
    .local v1, "e":Ljava/lang/Exception;
    iget-object v2, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Div:"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1}, Ljava/lang/Exception;->getLocalizedMessage()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const/4 v4, 0x1

    invoke-static {v2, v3, v4}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/Toast;->show()V

    goto :goto_2
.end method

.method public setStyle(Ljava/lang/String;)V
    .locals 0
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 160
    invoke-virtual {p0, p1}, Lrexsee/core/widget/Div;->setDivStyle(Ljava/lang/String;)V

    .line 161
    return-void
.end method

.method public setStyleWithoutLayoutParams(Ljava/lang/String;)V
    .locals 1
    .param p1, "style"    # Ljava/lang/String;

    .prologue
    .line 156
    iget-object v0, p0, Lrexsee/core/widget/Div;->styleSheet:Lrexsee/core/style/StyleSheet;

    invoke-virtual {v0, p1}, Lrexsee/core/style/StyleSheet;->parseStyle(Ljava/lang/String;)Lrexsee/core/style/StyleSheet;

    .line 157
    invoke-virtual {p0}, Lrexsee/core/widget/Div;->setDivStyleWithoutLayoutParams()V

    .line 158
    return-void
.end method

.method public stopAnimate()V
    .locals 2

    .prologue
    .line 181
    iget-object v0, p0, Lrexsee/core/widget/Div;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/widget/Div$1;

    invoke-direct {v1, p0}, Lrexsee/core/widget/Div$1;-><init>(Lrexsee/core/widget/Div;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 187
    return-void
.end method
